﻿using Microsoft.AspNetCore.Mvc;
using System;
using System.Collections.Generic;
using System.Net;
using System.Text;

namespace Wfxin.SystemFramework
{ 
    public class ActionResults
    {
        #region 辅助方法
        public static IActionResult CreateResult(HttpStatusCode code, string content)
        {
            var success = code == HttpStatusCode.OK;
            return new ContentResult()
            {
                StatusCode = (int)code,
                Content = content,
                ContentType = "application/json; charset=utf-8",
            };
        }
        #endregion
    } 
}
